/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package azhar.engine;

import azhar.view.Main;
import org.smslib.*;
import org.smslib.AGateway.*;

/**
 *
 * @author Al-Insan
 */
public class GatewayStatusNotification implements IGatewayStatusNotification {

    Main main;
    public GatewayStatusNotification(Main m) {
        main = m;
    }

    public void process(AGateway gateway, GatewayStatuses oldStatus, GatewayStatuses newStatus) {
        System.out.println(">>> Gateway Status change for " + gateway.getGatewayId() + ", OLD: " + oldStatus + " -> NEW: " + newStatus);
        main.setGatewayStatus(""+newStatus);
    }
}
